package com.uwo.house.dao;

import com.uwo.house.beans.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yanhao on 2017/7/13.
 */
@Repository
public interface PermissionMapper {

    List<Permission> selectByRoleId(@Param(value = "rid")Long roleId);

    int save(Permission permission);

    int modify(Permission permission);

    int remvoe(@Param(value = "id") Long id);
    
}
